// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'

import {Toast} from 'vant'

import './components/common/scss/common.scss'
import 'vant/packages/vant-css/src/base.css'
import 'vue2-animate/dist/vue2-animate.min.css'

import getUrlParam from './getUrlParam'

axios.defaults.withCredentials = true

Vue.config.productionTip = false
Vue.prototype.$axios = axios
Vue.prototype.$getParam = getUrlParam
// Vue.use(Toast)

Toast.setDefaultOptions({
  duration: 800
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {
    App
  },
  template: '<App/>'
})
